You rotate the square by moving the mouse (i.e. it's like there's a rubber band attached to the middle of one side of the square and to the end of the cursor). Knock a block and it turns color or disappears:
Red -> Purple -> Blue -> Green -> Yellow -> add a point to your score!
Get rid of all the colored blocks, and you move on to the next level.